/*
 * @(#)MtmDocumentRelationship.java
 *
 * Copyright (c) 2003 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of DCIVision
 * Ltd ("Confidential Information").  You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of the license
 * agreement you entered into with DCIVision Ltd.
 */
package com.dcivision.dms.bean;

import com.dcivision.framework.bean.AbstractBaseObject;

/**
  MtmDocumentRelationship.java
  This class is the serializable bean reflecting business logic uses.
    @author           Rollo Chan
    @company          DCIVision Limited
    @creation date    02/01/2004
    @version          $Revision: 1.7 $
 */

public class MtmDocumentRelationship extends AbstractBaseObject {

  public static final String REVISION = "$Revision: 1.7 $";

  static final long serialVersionUID = -2035962540072699645L;

  private Integer documentID = null;                //Always the host document
  private Integer relatedDocumentID = null;         //Always the related document; e.g. shortcut document
  private String relationshipType = null;
  private String description = null;

  //Used for dmsDocument creation
  private String documentName = null;
  private Integer parentID = null;
  private Integer rootID = null;

  //indicate the doc relationship direction
   public static final String DOCUMENT_RELATION_DIRECT = "DIRECT";
   public static final String DOCUMENT_RELATION_INDIRECT = "INDIRECT";
   public String relationshipDirection = null;

  public MtmDocumentRelationship() {
    super();
  }

  public Integer getDocumentID() {
    return (this.documentID);
  }

  public void setDocumentID(Integer documentID) {
    this.documentID = documentID;
  }

  public Integer getRelatedDocumentID() {
    return (this.relatedDocumentID);
  }

  public void setRelatedDocumentID(Integer relatedDocumentID) {
    this.relatedDocumentID = relatedDocumentID;
  }

  public String getRelationshipType() {
    return (this.relationshipType);
  }

  public void setRelationshipType(String relationshipType) {
    this.relationshipType = relationshipType;
  }

  public String getDescription() {
    return (this.description);
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public String getDocumentName() {
    return (this.documentName);
  }

  public void setDocumentName(String documentName) {
    this.documentName = documentName;
  }

  public Integer getParentID() {
    return (this.parentID);
  }

  public void setParentID(Integer parentID) {
    this.parentID = parentID;
  }

  public Integer getRootID() {
    return (this.rootID);
  }

  public void setRootID(Integer rootID) {
    this.rootID = rootID;
  }

  public String getRelationshipDirection(){
    return this.relationshipDirection;
  }

  public void setRelationshipDirection(String relationshipDirection){
    this.relationshipDirection = relationshipDirection;
  }

}